Skip to content

Conversation

@Skchoudhary
Copy link

@Skchoudhary Skchoudhary commented Jun 17, 2021

Description

This PR and a check to show/hide the delete button on the course content in Studio. With these changes, the delete button is only visible to the admin user one with the CourseInstructor role only and will not be visible to the CourseStaff role users.

Course Outline view for the user when it has admin access to the course
admin_role_user_page_view

Course Outline view for the user when it has staff access to the course
staff_role_user_page_view

Supporting information

JIRA Ticket: SE-4482

Testing instructions

FYI: This testing instruction is for the sandbox deployed against this PR

  • Login with staff@example.com on https://studio.pr360.sandbox.opencraft.hosting/.
  • Go to the setting > Course team of the Demonstration Course
  • Add verified@example.com as the staff for the course
  • Login from the verified@example.com on the studio page
  • verified@example.com should not be able to see the delete button on the course outline page.

Reviewers

Copy link

@nizarmah nizarmah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

  • I tested this by following the testing instructions
  • I read through the code
  • I checked for accessibility issues
  • Includes documentation
  • I made sure any change in configuration variables is reflected in the corresponding client's configuration-secure repository.

@nizarmah nizarmah force-pushed the se-4482-allow-delete-in-studio-only-for-admin-oxford-koa.3 branch from 562b6fa to a3426cd Compare June 25, 2021 15:23
@nizarmah
Copy link

Closing this pull request since I'm going to be cherry-picking an identical squashed commit into the branch instead.

@nizarmah nizarmah closed this Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants